package com.atguigu.day01;


interface Add{
     int add(int x,int y);
     default void sub(int x,int y){
         System.out.println(x*y);
     }
}

public class Lambda {
    public static void main(String[] args) {
        Add a = (int x, int y) -> {
            return x + y;
        };

        System.out.println(a.add(8, 6));



    }
}